package com.yourname.menu;

import com.yourname.action.CourseAction;
import com.yourname.action.LoginAction;
import com.yourname.action.StudentAction;
import com.yourname.entity.Student;

import java.util.Scanner;

public class StudentManageMenu {
    public static void studentMenu(){
        while (true){
        StringBuilder menuStrBuilder=new StringBuilder();
        menuStrBuilder.append("1.编辑学生\n")
                .append("2. 返回上一级\n");
        System.out.println(menuStrBuilder);
        Scanner scanner=new Scanner(System.in);

            int i = scanner.nextInt();
            switch (i){
                case 1-> StudentAction.editStudent();
            }
            if (i==2)
                break;
        }

    }
}
